import request from '@/utils/request'

/**
 * 获取优惠券列表
 */
export function getOrderList(pageNo, size) {
    return request(({
        url: '/order/orderListPage',
        method: 'get',
        params: {pageNo: pageNo, size: size}
    }))
}

/**
 * 获取全现金流
 */
export function getCashFlow(days) {
    return request(({
        url: '/order/getCashFlow',
        method: 'get',
        params: {days: days}
    }))
}
/**
 * 获取店铺现金流
 */
export function getCashStoreFlow(days, storeId) {
    return request(({
        url: '/order/getStoreCashFlow',
        method: 'get',
        params: {days: days, storeId: storeId}
    }))
}

/**
 * 获取最畅销单品
 */
export function getBestSelling() {
    return request(({
        url: '/order/getBestSelling',
        method: 'get',
    }))
}
/**
 * 获取最畅销单品
 */
export function getBestSellingCount() {
    return request(({
        url: '/order/getBestSellingCount',
        method: 'get',
    }))
}
